package junittest;


import static org.junit.Assert.assertEquals;

import java.util.GregorianCalendar;

import ordination.DagligFast;
import ordination.Ordination;

import org.junit.Before;
import org.junit.Test;

public class OrdinationTest {
	private Ordination ordination;

	@Before
	public void setUp() throws Exception {
		
	}

	@Test
	public void tc32AntalDage(){
		ordination = new DagligFast(new GregorianCalendar(2011, 1, 1), new GregorianCalendar(2011, 1, 7), 1, 2, 3, 4);
		assertEquals(7, ordination.antalDage(), 0);
	}

	@Test
	public void tc33AntalDage(){
		ordination = new DagligFast(new GregorianCalendar(2011, 1, 1), new GregorianCalendar(2011, 1, 1), 1, 2, 3, 4);
		assertEquals(1, ordination.antalDage(), 0);
	}
}
